package com.htj.admin.service;

import com.htj.admin.domain.Cart;
import com.htj.vo.PageListVo;

import java.util.Map;

public interface CartServiceInf {

    boolean add(Cart card);

    PageListVo<Cart> pageList(Map<String, String> map);

    boolean update(Cart card);

    boolean delete(Integer id);

    boolean handleChange(Map<String, String> map);

    Cart getByFoodIdAndUserId(Integer foodId, Integer userId);

    boolean deleteByfoodIdAnduserId(Integer userId,Integer foodId);
}
